package com.koron.order.overhaul.mapper;

import com.koron.order.overhaul.bean.entity.OverhaulOrderBean;
import com.koron.order.overhaul.bean.query.OverhaulOrderQuery;
import com.koron.order.overhaul.bean.vo.OverhaulOrderDetailVO;
import com.koron.order.overhaul.bean.vo.OverhaulOrderMajorFormVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * (OverhaulOrderMapper)表数据库访问层
 *
 * @author twcao
 * @since 2021-09-29 09:49:23
 */
public interface OverhaulOrderMapper {

    OverhaulOrderDetailVO queryById(String id);

    OverhaulOrderBean getById(String id);

    OverhaulOrderMajorFormVO getFormDetailById(String formId);

    List<OverhaulOrderBean> queryList(OverhaulOrderQuery query);

    int saveOrUpdate(OverhaulOrderBean bean);

    int update(OverhaulOrderBean bean);

    String getOrderStatus(@Param("orderId") String orderId);

    /**
     * 逻辑删除
     * @param id
     * @return
     */
    int hidden(String id);

    List<String> getAllChildrenEquipmentIds(@Param("equipmentIds") List<String> equipmentIds);

    List<Map<String,Object>> getAllOverhaulIds();
}
